Component({
  properties: {
    cinemas: {
      type: Array,
      value: []
    }
  },

  methods: {
    //点击跳转到订票页面
    onCinemaItemClick(e) {
      const id = e.currentTarget.dataset.id;
      const cinemaData = this.data.cinemas[id];
      wx.navigateTo({
        url: '/pages/booking/booking',
        success: function (res) {
          // 获取事件通道并手动触发事件
          const eventChannel = res.eventChannel;
          eventChannel.emit('acceptDataFromCmaPage', {data: cinemaData})
        }
      });
    },
  }
});